package com.huazhi.wzsnw.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Complaint {
    private String tid;

    private Date time;

    private String place;

    private String phenomenon;

    private Date feedbacktime;

    private String questionresult;

    private String timestring;

    private String feedbacktimestring;

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid == null ? null : tid.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place == null ? null : place.trim();
    }

    public String getPhenomenon() {
        return phenomenon;
    }

    public void setPhenomenon(String phenomenon) {
        this.phenomenon = phenomenon == null ? null : phenomenon.trim();
    }

    public Date getFeedbacktime() {
        return feedbacktime;
    }

    public void setFeedbacktime(Date feedbacktime) {
        this.feedbacktime = feedbacktime;
    }

    public String getQuestionresult() {
        return questionresult;
    }

    public void setQuestionresult(String questionresult) {
        this.questionresult = questionresult == null ? null : questionresult.trim();
    }

    public String getTimestring() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if (time != null && timestring == null){
            return dateFormat.format(time);
        }
        return timestring;
    }

    public void setTimestring(String timestring) {
        this.timestring = timestring;
    }

    public String getFeedbacktimestring() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if (feedbacktime != null && feedbacktimestring == null){
            return dateFormat.format(feedbacktime);
        }
        return feedbacktimestring;
    }

    public void setFeedbacktimestring(String feedbacktimestring) {
        this.feedbacktimestring = feedbacktimestring;
    }
}